﻿// ***********************************************************************
// Assembly         : SecurityLayer
// Author           : LJO+01 (Laurent Jordi)
// Created          : 06-05-2013
// Last Modified By : LJO+01 (Laurent Jordi)
// Last Modified On : 06-05-2013
// ***********************************************************************
// <copyright file="InnoAppUser_MetaModel.cs" company="Copyright © Innovacall 2011">
//     Copyright (c) Copyright © Innovacall 2011. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using InnovaApp.Layers.MetaDataLayer;
using InnovaApp.Layers.ResourcesLayer.Properties;
using INNOVACALL.Framework.Common.MVCHelpers.Localization;
using System.Collections.Generic;
using INNOVACALL.Framework.Common.Models;

namespace InnovaApp.Layers.SecurityLayer.Models.MetaModels
{
    /// <summary>
    /// Class InnoAppUser_MetaModel
    /// </summary>
	public class InnoAppUser_MetaModel : InnoAppUser_MetaData
	{
        /// <summary>
        /// Gets or sets the confirm password.
        /// </summary>
        /// <value>The confirm password.</value>
        [DataType(DataType.Password)]
		[Display(ResourceType = typeof(Resources), Name = "View_Register_AppUser_ConfirmPassword")]
		//see http://connect.microsoft.com/VisualStudio/feedback/details/665793/jquery-unobtrusive-validate-equalto-fails-with-compare-attribute#details
		[Compare("Password", ErrorMessageResourceName = "ErrMsgPassword_Compare_Mismatch", ErrorMessageResourceType = typeof(Resources))]
		public string ConfirmPassword { get; set; }
        /// <summary>
        /// Gets or sets the roles.
        /// </summary>
        /// <value>The roles.</value>
        
        [Display(ResourceType = typeof(InnovaApp.Layers.ResourcesLayer.Properties.Resources), Name = "View_AdminUsers_UserRoles")]
        public CheckBoxList Roles { get; set; }
        /// <summary>
        /// Initializes a new instance of the <see cref="InnoAppUser_MetaModel"/> class.
        /// </summary>
		public InnoAppUser_MetaModel()
			: base()
		{
            this.Roles = new CheckBoxList();
		}
	}
}
